#!/usr/bin/env python3
"""
脚本名称：ch28_exe.py
功能描述： 演示布尔表达式练习
作者：Gavin
创建日期：2022-05-06
版本：1.0
依赖库：无
使用方法： python ch28_exe.py
"""

print(True and True)  # true
print(False and True)  # false
print(1 == 1 and 2 == 1)  # false
print("test" == "test")  # true
print(1 == 1 or 2 != 1)  # true
print(True and 1 == 1)  # true
print(False and 0 != 0)  # false
print(True or 1 == 1)  # true
print("test" == "testing")  # false
print(1 != 0 and 2 == 1)  # false
print("test" != "testing")  # false
print("test" == 1)  # false
print(not (True and False))  # true
print(not (1 == 1 and 0 != 1))  # false
print(not (10 == 1 or 1000 == 1000))  # false
print(not (1 != 10 or 3 == 4))  # false
print(not ("testing" == "testing" and "Zed" == "Cool Guy"))  # true
print(1 == 1 and not ("testing" == 1 or 1 == 0))  # true
print("chunky" == "bacon" and not (3 == 4 or 3 == 3))  # false
print(3 == 3 and not ("testing" == "testing" or "Python" == "Fun"))  # false
